import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    component: () => import("../views/demo/Vuex3.vue"),
  },
  {
    path: "/vuex3",
    component: () => import("../views/demo/Vuex3.vue"),
  },
  {
    path: "/mockjs",
    component: () => import("../views/demo/Mockjs.vue"),
  },
  {
    path: "/bigscreen",
    component: () => import("../views/demo/BigScreen.vue"),
  },
  {
    path: "/echarts",
    component: () => import("../views/demo/Echarts.vue"),
  },
];

const router = new VueRouter({
  mode: "history",
  routes,
});

export default router;
